package com.heima.apis.article.fallback;

import com.heima.apis.article.IArticleClient;
import com.heima.model.article.dtos.ApArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.enums.AppHttpCodeEnum;
import org.springframework.stereotype.Component;

@Component
public class IArticleClientFallback implements IArticleClient {

    /**
     * 保存文章服务降级实现
     *
     * @param apArticleDto
     * @return
     */
    @Override
    public ResponseResult saveArticle(ApArticleDto apArticleDto) {
        return ResponseResult.errorResult(AppHttpCodeEnum.DATA_NOT_EXIST,"获取数据失败");
    }
}
